Ext.define('Admin.view.process.definition.ProcessDefinitionUploadForm', {
    extend: 'Ext.form.Panel',
    alias: 'widget.processdefinition-upload-form',
    //id:'processdefinition-upload-form',
    requires: [
        'Ext.button.Button',
        'Ext.form.field.Text',
        'Ext.form.field.File',
        'Ext.form.field.HtmlEditor'
    ],

    controller: 'processdefinition',
    //cls: 'email-compose',

    layout: {
        type: 'vbox',
        align: 'stretch'
    },
    bodyPadding: 10,
    scrollable: true,
    defaults: {
        labelWidth: 60,
        labelSeparator: ''
    },
    items: [{
        xtype: 'filefield',
        width: 400,
        labelWidth: 80,
        name: 'file',
        emptyText: '选择 zip/bpmn/bpmn.20.xml 文件!',
        fieldLabel: '上传文件:',
        labelSeparator: '',
        buttonConfig: {
            xtype: 'filebutton',
            glyph: '',
            iconCls: 'x-fa fa-cloud-upload',
            text: '浏览文件'
        }
    }],
    bbar: [{
        xtype: 'button',
        ui: 'soft-green',
        text: '上传',
        handler: 'onClickProcessDefinitionUploadFormUploadButton'
    }, {
        xtype: 'button',
        ui: 'gray',
        text: '取消',
        handler: 'onClickProcessDefinitionUploadFormCancelButton'
    }]


});